<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2727. 判断对象是否为空</title>
</head>

<body>

</body>

<script>
    /**
     * @param {Object|Array} obj
     * @return {boolean}
     */

    var isEmpty = function (obj) {
        return JSON.stringify(obj).length === 2
    };
</script>

</html>